/*
package com.cloud.tsp.controller;

import com.cloud.api.domain.tsp.CommandExecLatest;
import com.cloud.api.domain.tsp.ExamineCommand;
import com.cloud.api.domain.tsp.IssueCommand;
import com.cloud.api.domain.tsp.QueryReview;
import com.cloud.core.util.R;
import com.cloud.log.annotation.Log;
import com.cloud.log.enums.BusinessType;
import com.cloud.log.enums.OperatorType;
import com.cloud.mybatis.domain.TableDataInfo;
import com.cloud.tsp.service.ICommandExecLatestService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import jakarta.annotation.Resource;
import jakarta.validation.Valid;

*/
/**
 * <p>
 *  审核命令
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-29
 *//*

@RestController
@RequestMapping("/command-exec-latest")
public class CommandExecLatestController {

    @Resource
    private ICommandExecLatestService commandExecLatestService;

    @Tag(name = "v1.0")
    @Operation(summary = "审核管理（管理）")
    @PostMapping("/getReview")
    @Log(title = "指令管理-审核管理", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public TableDataInfo<CommandExecLatest> selectReview(@RequestBody @Valid QueryReview para){
        return commandExecLatestService.selectReview(para);
    }

    @Tag(name = "v1.0")
    @Operation(summary = "被锁定车辆数（管理）")
    @PostMapping("/getLockCount")
    @Log(title = "指令管理-被锁定车辆数", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<Long> selectLockCount(){
        return R.ok(commandExecLatestService.selectLockCount());
    }

    @Tag(name = "v1.0")
    @Operation(summary = "下发命令（管理）")
    @PostMapping("/issueCommand")
    @Log(title = "指令管理-下发命令", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R issueCommand(@RequestBody @Valid IssueCommand para){
        commandExecLatestService.issueCommand(para);
        // TODO 待国际化
        return R.ok("命令下发成功，审核通过后生效");
    }

    @Tag(name = "v1.0")
    @Operation(summary = "审核命令（管理）")
    @PostMapping("/examineCommand")
    @Log(title = "指令管理-审核命令", businessType = BusinessType.UPDATE, operatorType = OperatorType.MANAGE)
    public R examineCommand(@RequestBody @Valid ExamineCommand para){
        commandExecLatestService.examineCommand(para);
        if (para.getResult() == 0){
            return R.ok("指令提交成功，因为车辆返回有延迟，稍后请至【车辆位置】模块查看VIN的锁定状态。");
        }else {
            return R.ok();
        }
    }

    */
/*@Tag(name = "v1.0")
    @Operation(summary = "测试下发指令（管理）")
    @PostMapping("/test")
    public R test(){
        List<String>list = new ArrayList<>();
        list.add("BCCS52190JCS000421");
        commandExecLatestService.mqNotice(list);
        return R.ok();
    }*//*

}*/
